#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>

int my_strlen1(char arr[])
{
	int a = 0;
	while (arr[a] != '\0')
	{
		a++;
	}
	return a;
}
int my_strlen2(char*arr)
{
	if (*arr == '\0')
	{
		return 0;
	}
	else
		return 1 + my_strlen2(arr + 1);
}

int main1()
{
	char arr[] = { "abcdefe" };
	int x = my_strlen2(arr);
	printf("%d", x);
	return 0;
}

void my_strcpy(char arr1[],char arr2[])
{
	int x = strlen(arr2);
	for (int i = 0; i < x; i++)
	{
		arr1[i] = arr2[i];
	}
}
void my_strcat(char arr1[], char arr2[])
{
	int x = strlen(arr2);
	for (int j = 0; j < x; j++)
	{
		arr1[x + j] = arr2[j];
	}
}
int main()
{
	char arr[] = { "abcdef" };
	char s[256] = { 0 };
	my_strcpy(s,arr);
	my_strcat(s, arr);
	printf("%s", s);
}